<?php

/*
    Test template structure
        Author:     Alfredo Mungo
        License:    LGPL
        Copyright:  2012
*/

if(!defined('TEST_TITLE'))
    define('TEST_TITLE', 'Generic Test');

?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title><?=TEST_TITLE?></title>
  <style type="text/css">
  
    body { background-color: #DEF7FF; }
    table.phi-test-table {
        width: 900px;
        margin-bottom: 20px;
        font-family: courier;
    }

    table.phi-test-table tbody tr td {
        background-color: #FCF6AC;
        color: black;
        border: none;
        margin: 0px;
    }

    table.phi-test-table tbody tr:nth-of-type(even) td {
        background-color: #FAE1EB;
    }

    table.phi-test-table tbody tr td:first-of-type {
        text-align: left;
    }

    table.phi-test-table tbody tr td:last-of-type {
        text-align: center;
        width: 150px;
        font-weight: bold;
    }

    table.phi-test-table tbody tr td[data-success] {
        background-color: #B3FAA5;
        color: black;
    }

    table.phi-test-table tbody tr td[data-fail] {
        background-color: #FC5858;
        color: yellow;
        font-weight: 900;
    }

    .phi-test-indent {
        margin-left: 20px;
    }
  </style>
</head>
<body>
  <h1><?=TEST_TITLE?></h1>
  <div class="phi-test-indent">
      <h2>Test-case report</h2>
      <div class="phi-test-indent">
          <?php test_report_print(); ?>
      </div>
  </div>
</body>
</html>
